// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.0

Rectangle {
    width: page.width
    height: page.height
    color: "black"
    property string name: ""


    Text
    {
	anchors.centerIn: parent
	text: parent.name
	color: "white"
	visible: !image.visible
	font.pixelSize: 200
    }




    Image
    {
	id: image
	visible: {if (name == "cross.jpg" || name == "finished.jpg" || name == "rest.jpg") return true; return false;}
	source: {if (name == "cross.jpg" || name == "finished.jpg" || name == "rest.jpg") return "qrc:/"+name ; return "qrc:/rest.jpg";}
	anchors.fill: parent
	fillMode: Image.PreserveAspectFit

    }
}
